package com.xuda.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ：程序员徐大大
 * @description：TODO
 * @date ：2022-07-26 17:19
 */
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient  //服务注册发现
@ComponentScan(basePackages = {"com.xuda"}) //进行扫描包的规则（为扫描@Configuration的配置类，（两个@Configuration都是需要进行扫描））
public class ServiceEduApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class, args);
    }

}